-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix QuarkusProdModeTest mistaking Hibernate ORM logs for a proof of application startup #40652
Fix QuarkusProdModeTest mistaking Hibernate ORM logs for a proof of application startup #40652
Conversation
...ework/junit5-internal/src/test/java/io/quarkus/test/QuarkusProdModeTestConfusingLogTest.java
Outdated
Show resolved
Hide resolved
...ework/junit5-internal/src/test/java/io/quarkus/test/QuarkusProdModeTestConfusingLogTest.java
Show resolved
Hide resolved
…pplication startup Without this, QuarkusProdModeTest runs the tests too early because it mistakes this log line for the "Installed features: ..." line that Quarkus usually outputs on startup: > 2024-05-15 09:11:26,199 WARN [org.hib.dia.Dialect] (main) HHH000511: The -9999.-9999.-9999 version for [org.hibernate.dialect.PostgreSQLDialect] is no longer supported, hence certain features may not work properly. The minimum supported version is 12.0.0. Check the community dialects project for available legacy versions. Note how the line contains the word "features". See https://quarkusio.zulipchat.com/#narrow/stream/187038-dev/topic/Hibernate.206.2E5/near/438739167
f009490
to
5ea9b52
Compare
Thanks for the review, I addressed the comments and rebased on main. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really nice, thanks a lot!
@gsmet @aloubyansky I'm marking for backports back to 3.2. I think this would affect even very old apps, as long as they have a QuarkusProdModeTest and a log on startup including the word "features" -- which could be the result of using Hibernate ORM 6.2+ together with setting The bug would have those tests fail randomly depending on how long the app takes to start. I'll let you judge of severity. |
Status for workflow
|
Without this, QuarkusProdModeTest runs the tests too early because it mistakes the following log line for the "Installed features: ..." line that Quarkus usually outputs on startup:
Note how the line contains the word "features".
See https://quarkusio.zulipchat.com/#narrow/stream/187038-dev/topic/Hibernate.206.2E5/near/438739167